package com.cn.system.entity;

import com.cn.system.crawler.annotation.PageFieldSelect;
import com.cn.system.crawler.annotation.PageSelect;

import java.util.List;

@PageSelect(cssQuery=".course-card--container")
public class CrawlerModel {

  @PageFieldSelect(cssQuery = ".category-title")
  private String text;


  public List<GroupNode> getGroupNode() {
    return groupNode;
  }

  public void setGroupNode(List<GroupNode> groupNode) {
    this.groupNode = groupNode;
  }

  public List<CourseCard> getCards() {
    return cards;
  }

  @Override
  public String toString() {
    return "CrawlerModel{" +
        "text='" + text + '\'' +
        ", groupNode=" + groupNode +
        ", cards=" + cards +
        '}';
  }

  public void setCards(List<CourseCard> cards) {
    this.cards = cards;
  }

  @PageFieldSelect(cssQuery = ".groupNode")
  private List<GroupNode> groupNode;

  @PageFieldSelect(cssQuery = ".groupNode")
  private List<CourseCard> cards;

  public String getText() {
    return text;
  }

  public void setText(String text) {
    this.text = text;
  }

}
